/**
 * Created by Administrator on 2016/3/15.
 */
'use strict';
//立即执行类
//let user = new class User{
//  constructor(name){
//      this.name = name;
//  }
//}('doramart');
//
//
//console.log(user);

//不被提升
var user = new User();

class User{
    constructor(name){
        this.name = name;
    }
}

console.log(user);